package com.trainoo.novel.constant;

public enum ExceptionType {

    HOT(0, "查询热门图书"),
    INFO(0, "查询图书详情"),
    READ(0, "查询图书章节内容"),
    SEARCH(0, "搜索图书"),
    ;

    private int code;
    private String message;

    ExceptionType(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
